# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-pcsx-rearmed
pkgver=0_git20200317
pkgrel=0
_commit="3c4ac5bb44b41d23eec217369eaa34f4e155f733"
pkgdesc="ARM optimized PCSX fork for libretro"
url="https://github.com/libretro/pcsx_rearmed"
arch="all !armv7 !armhf"
license="GPL-2.0-only"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/pcsx_rearmed/archive/$_commit.tar.gz"
builddir="$srcdir/pcsx_rearmed-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 pcsx_rearmed_libretro.so "$pkgdir"/usr/lib/libretro/pcsx_rearmed_libretro.so
}

sha512sums="091983c4cf48b87dcc854ab69024621a02bbe645faafbcea67d75690061ffef1530e416c04f1794727b3c4941bdbe53cff49efade078c20f3bd47fa5a8fd1a4c  libretro-pcsx-rearmed-3c4ac5bb44b41d23eec217369eaa34f4e155f733.tar.gz"
